Optimal. Leaf size=28 \[ \frac{\tan (c+d x)}{a d}-\frac{\cot (c+d x)}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07482, antiderivative size = 28, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {3175, 2620, 14} \[ \frac{\tan (c+d x)}{a d}-\frac{\cot (c+d x)}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3175
Rule 2620
Rule 14
Rubi steps
\begin{align*} \int \frac{\csc ^2(c+d x)}{a-a \sin ^2(c+d x)} \, dx &=\frac{\int \csc ^2(c+d x) \sec ^2(c+d x) \, dx}{a}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1+x^2}{x^2} \, dx,x,\tan (c+d x)\right )}{a d}\\ &=\frac{\operatorname{Subst}\left (\int \left (1+\frac{1}{x^2}\right ) \, dx,x,\tan (c+d x)\right )}{a d}\\ &=-\frac{\cot (c+d x)}{a d}+\frac{\tan (c+d x)}{a d}\\ \end{align*}
Mathematica [A] time = 0.0270954, size = 16, normalized size = 0.57 \[ -\frac{2 \cot (2 (c+d x))}{a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.06, size = 25, normalized size = 0.9 \begin{align*}{\frac{1}{da} \left ( \tan \left ( dx+c \right ) - \left ( \tan \left ( dx+c \right ) \right ) ^{-1} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.956545, size = 38, normalized size = 1.36 \begin{align*} \frac{\frac{\tan \left (d x + c\right )}{a} - \frac{1}{a \tan \left (d x + c\right )}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.58146, size = 77, normalized size = 2.75 \begin{align*} -\frac{2 \, \cos \left (d x + c\right )^{2} - 1}{a d \cos \left (d x + c\right ) \sin \left (d x + c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \frac{\int \frac{\csc ^{2}{\left (c + d x \right )}}{\sin ^{2}{\left (c + d x \right )} - 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15326, size = 26, normalized size = 0.93 \begin{align*} -\frac{2}{a d \tan \left (2 \, d x + 2 \, c\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]